package org.aplombh.java.interview.newcoder;

import java.util.Scanner;

//HJ26 字符串排序
public class HJ26_字符串排序 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String a = in.nextLine();
            String[] all = a.split(" ");
            for (String sub : all) {
                String tmp = sub.replaceAll("[^a-zA-Z]", "");
                char[] ans = sub.toCharArray();
                char[] res = new char[tmp.length()];
                for (int i = 0, k = 0; i < 26; i++) {
                    for (int j = 0; j < tmp.length(); j++) {
                        if (tmp.charAt(j) - 'a' == i || tmp.charAt(j) - 'A' == i)
                            res[k++] = tmp.charAt(j);
                    }
                }
                for (int i = 0, k = 0; i < ans.length; i++) {
                    if ((ans[i] >= 'a' && ans[i] <= 'z') || (ans[i] >= 'A' && ans[i] <= 'Z'))
                        ans[i] = res[k++];
                }
                System.out.print(ans);
                System.out.print(" ");
            }
        }
    }
}